// PipeTableRecord.cpp: implementation of the PipeTableRecord class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "PipeTableRecord.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
using namespace PDMS::PDMSDBIF;

PipeTableRecord::PipeTableRecord()
{

}

PipeTableRecord::~PipeTableRecord()
{

}

void PipeTableRecord::SetBuildFlag( BOOL bBuildFlag )
{
	m_bBuildFlag = bBuildFlag;
}

void PipeTableRecord::SetShopFlag( BOOL bShopFlag )
{
	m_bShopFlag = bShopFlag;
}

void PipeTableRecord::SetCaseRef( const StdString& strCaseRef )
{
	m_strCaseRef = strCaseRef;
}

void PipeTableRecord::SetDescription( const StdString& strDescription )
{
	m_strDescription = strDescription;
}

void PipeTableRecord::SetFluRef( const StdString& strFluRef )
{
	m_strFluRef = strFluRef;
}

void PipeTableRecord::SetFunction( const StdString& strFunction )
{
	m_strFunction = strFunction;
}

void PipeTableRecord::SetIspec( const StdString& strIspec )
{
	m_strIspec = strIspec;
}

void PipeTableRecord::SetMatRef( const StdString& strMatRef )
{
	m_strMatRef = strMatRef;
}

void PipeTableRecord::SetPipeBore( LengthUnit dPipeBore )
{
	m_dPipeBore = dPipeBore.GetValue();
}

void PipeTableRecord::SetPressure( PressureUnit pressure )
{
	m_dPressure = pressure.GetValue();
}

void PipeTableRecord::SetPspec( const StdString& strPspec )
{
	m_strPspec = strPspec;
}

void PipeTableRecord::SetPtspec( const StdString& strPtspec )
{
	m_strPtspec = strPtspec;
}

void PipeTableRecord::SetPurpose( const StdString& strPurpose )
{
	m_strPurpose = strPurpose;
}

void PipeTableRecord::SetTemperature( TemperatureUnit temperature )
{
	m_dTemperature = temperature.GetValue();
}

void PipeTableRecord::SetTspec( const StdString& strTspec )
{
	m_strTspec = strTspec;
}

BOOL PipeTableRecord::GetBuildFlag()
{
	return m_bBuildFlag;
}

BOOL PipeTableRecord::GetShopFlag()
{
	return m_bShopFlag;
}

const StdString& PipeTableRecord::GetCaseRef()
{
	return m_strCaseRef;
}

const StdString& PipeTableRecord::GetDescription()
{
	return m_strDescription;
}

const StdString& PipeTableRecord::GetPurpose()
{
	return m_strPurpose;
}

const StdString& PipeTableRecord::GetFluRef()
{
	return m_strFluRef;
}

const StdString& PipeTableRecord::GetFunction()
{
	return m_strFunction;
}

const StdString& PipeTableRecord::GetIspec()
{
	return m_strIspec;
}

const StdString& PipeTableRecord::GetMatRef()
{
	return m_strMatRef;
}

LengthUnit PipeTableRecord::GetPipeBore()
{
	return LengthUnit( m_dPipeBore );
}

PressureUnit PipeTableRecord::GetPressure()
{
	return PressureUnit( m_dPressure );
}

const StdString& PipeTableRecord::GetPspec()
{
	return m_strPspec;
}

const StdString& PipeTableRecord::GetPtspec()
{
	return m_strPtspec;
}

const StdString& PipeTableRecord::GetTspec()
{
	return m_strTspec;
}

TemperatureUnit PipeTableRecord::GetTemperature()
{
	return TemperatureUnit( m_dTemperature );
}
